{% extends "templates/public/base.html" %}
{% block title %}首页{% endblock %}
{% block body %}
<ul  class="row demo-tiles unstyled" id="products">
    {% if products %}
        {% for product in products %}
        <li class="span12 ruobiyitile" productid={{product.key().id()}} >
            <div class="tile productrow">
                <div class="row">
                    <div class="product span8">
                        <h3 class="tile-title">{{product.title}}</h3>
                        <div class="description">{{product.description}}</div>
                        <a class="moredesc"><i class="icon-chevron-down"></i>查看更多</a>
                    </div>
                    <div class="gobuy span3">
                        <a href="{{product.clickurl}}"  target="_blank"><img class="image" alt="" src="{{product.image}}"></a>
                        <a class="btn btn-primary btn-large btn-block" href="{{product.clickurl}}" target="_blank">官网购买连接</a>
                        <a href='http://service.weibo.com/share/share.php?url=http://www.ruobiyi.com/&appkey=3209255093&pic={{product.image}}&ralateUid=&language=zh_cn&searchPic=false' class="shareweibo btn btn-large btn-block btn-danger" target="_blank">分享到新浪微博</a>
                        <a href='http://share.v.t.qq.com/index.php?c=share&a=index&url=http://www.ruobiyi.com/&appkey=801284272&pic={{product.image}}' class="shareqtui btn btn-large btn-block btn-info" target="_blank">分享到腾讯微博</a>
                    </div>
                </div>
            </div>
        </li>
        {% endfor %}
    {% else %}
        <li class="span12 ruobiyitile">
            <div class="tile productrow">
                <h1>对不起，这个分类下面暂时没有推荐内容！</h1>
            </div>
        </li>
    {% endif %}
</ul>
{% endblock %}
{% block script %}
    <script type="text/javascript">
        var store={{store}};
        var category={{category}};
    </script>
{% endblock %}